package com.passioneffect.collection {

	/**
	 * @author Passion Effect
	 */
	public class RangeListIterator extends LinkListIterator{
		protected var endItem:ListItem;
		
		public function RangeListIterator(list:*) {
			super(list);
		}

		override protected function init(list:*) : void {
			var data:RangeList=list as RangeList;
			current=data.getStartItem();
			endItem=data.getEndItem();
		}
		
		override public function hasNext():Boolean{
			if(current.previous!=endItem && current!=null)return true;
			return false;
		}
		
	}
}
